from django.urls import path, include
from rest_framework.routers import DefaultRouter
from rest_framework_jwt.views import obtain_jwt_token

from users import views

router = DefaultRouter()
router.register('rcode', views.SmsCodeView)
router.register('users', views.UserView)
router.register('lcode', views.SmsLoginCodeView)
# router.register('mlogin', views.PasswordLoginView)

urlpatterns = [

    path('api/', include(router.urls)),
    path('api/login/', obtain_jwt_token),
]